.class Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingBarView;
.super Landroid/widget/FrameLayout;
.source "LoadingBarView.java"


# direct methods
.method constructor <init>(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    .line 40
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 41
    const v1, -0x777778

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingBarView;->setBackgroundColor(I)V

    .line 42
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingBarView;->createLoadingBar(Landroid/content/Context;)V

    .line 43
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v0

    .line 44
    .local v0, fillparentVal:I
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v1, v0, v0}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingBarView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 45
    return-void
.end method

.method private createLoadingBar(Landroid/content/Context;)V
    .locals 5
    .parameter "context"

    .prologue
    .line 53
    :try_start_0
    new-instance v0, Landroid/widget/ProgressBar;

    const/4 v1, 0x0

    const v2, 0x101007a

    invoke-direct {v0, p1, v1, v2}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 54
    .local v0, bar:Landroid/widget/ProgressBar;
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v2, -0x2

    const/4 v3, -0x2

    const/16 v4, 0x11

    invoke-direct {v1, v2, v3, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 56
    invoke-virtual {v0}, Landroid/widget/ProgressBar;->willNotCacheDrawing()Z

    .line 57
    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/LoadingBarView;->addView(Landroid/view/View;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 62
    .end local v0           #bar:Landroid/widget/ProgressBar;
    :goto_0
    return-void

    .line 59
    :catch_0
    move-exception v1

    goto :goto_0
.end method


# virtual methods
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "event"

    .prologue
    .line 66
    const/4 v0, 0x1

    return v0
.end method
